{extend name="/main"}
{block name="body"}
<form class="layui-form">
    <blockquote class="layui-elem-quote layui-text">系统参数</blockquote>
    <div class="layui-form-item">
        <label class="layui-form-label">网站名称</label>
        <div class="layui-input-inline">
            <input readonly value="{$data.website}" class="layui-input layui-bg-gray">
        </div>
        <div class="layui-form-mid layui-word-aux">[website] 网站名称及网站图标，将显示在浏览器的标签上。</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备案号</label>
        <div class="layui-input-inline">
            <input readonly value="{$data.bei_an}" class="layui-input layui-bg-gray">
        </div>
        <div class="layui-form-mid layui-word-aux">
            [bei_an] 公网备案号，可以在 <a target="_blank" class="layui-font-blue" href="http://beian.miit.gov.cn">备案管理中心</a> 查询获取，将在登录页面下面显示。
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">版权信息</label>
        <div class="layui-input-inline">
            <input readonly value="{$data.copyright}" class="layui-input layui-bg-gray">
        </div>
        <div class="layui-form-mid layui-word-aux">[copyright] 版权信息，在后台登录页面显示版本信息并链接到备案到信息备案管理系统。</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">屏幕水印</label>
        <div class="layui-input-inline">
            <input readonly value="{$data.watermark_switch == '1' ? '开' : '关'}" class="layui-input layui-bg-gray">
        </div>
        <div class="layui-form-mid layui-word-aux">[watermark_switch] 后台系统部分界面会出现屏幕水印。</div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="button" class="layui-btn layui-btn-primary" id="btn-edit">编辑</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script>
    $('#btn-edit').on('click', function(){
        let uri = "{$uri}/edit";
        layer.open({
            type: 2,
            title: '编辑',
            shadeClose: true,
            shade: 0.8,
            area: ['80%', '90%'],
            content: uri,
        });
    });
</script>
{/block}